#ifndef SECTION_ITEM_H_
#define SECTION_ITEM_H_

#include <vector>
#include <ostream>

#include "data_store.h"

using namespace std;

class Section_item : public Item
{
public:
  Section_item(string name);
  virtual ~Section_item();

  Item *get_item(string name);
  Item *get_item_deep(string name);
  void add_item(Item *item);

  void delete_item(string name);

  void save(ostream &os, string indent = "");

  void clear(void);

private:
  vector<Item *> _items;
};

#endif /* SECTION_ITEM_H_ */
